﻿using System;
using System.Web;
using System.Web.Mvc;
using TidyBlog.MVC;

namespace TidyBlog.MVC.WWW.Controllers
{
    /// <summary>
    /// 前台操作信息控制器 /Info/{action}
    /// </summary>
    public class InfoController : FrontController
    {
        /// <summary>
        /// 普通操作提示
        /// </summary>
        /// <returns></returns>
        public ActionResult Tips()
        {
            return View(new OperInfo()
            {
                Message = "操作提示"
            });
        }

        /// <summary>
        /// 操作成功提示
        /// </summary>
        /// <returns></returns>
        public ActionResult Success()
        {
            return View(new OperInfo()
            {
                Message = "操作成功"
            });
        }

        /// <summary>
        /// 操作错误提示
        /// </summary>
        /// <returns></returns>
        public ActionResult Error()
        {
            return View(new OperInfo()
            {
                Message = "未知错误"
            });
        }
    }
}
